/*
 * @Author: liszter <liszter@qq.com>
 * @Date: 2023-12-07 15:44:20
 * @LastEditTime: 2023-12-08 11:33:41
 * @LastEditors: lishutao
 * @Description: 暂无
 * @FilePath: \烟草数据标注工具\src\main.ts
 */
import { createApp } from 'vue'
import App from './App.vue'
import './samples/node-api'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

// 如果您正在使用CDN引入，请删除下面一行。
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import { createPinia } from 'pinia';
const pinia = createPinia();
const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.use(pinia);
app.use(ElementPlus)
app.mount('#app')
  .$nextTick(() => {
    postMessage({ payload: 'removeLoading' }, '*')
  })
